package com.heng.syncUp;

import org.openjdk.jol.info.ClassLayout;

import java.util.concurrent.TimeUnit;

public class SynchronizedDemo1 {
    public static void main(String[] args) {
        try {TimeUnit.SECONDS.sleep(5);}catch (InterruptedException e) {e.printStackTrace();}

        Object o = new Object();
        System.out.println("10进制："+o.hashCode());
//        System.out.println("16进制："+Integer.toHexString(o.hashCode()));
//        System.out.println("2进制："+Integer.toBinaryString(o.hashCode()));
//        synchronized (o) {
            System.out.println(ClassLayout.parseInstance(o).toPrintable());
//        }
    }
}
